<template>
    <div class="center">
<table width="887" border="0" cellpadding="0" cellspacing="0" style="width:665.25pt;border-collapse:collapse;table-layout:fixed;">
   <colgroup><col width="132" style="mso-width-source:userset;mso-width-alt:4224;">
   <col width="86" style="mso-width-source:userset;mso-width-alt:2752;">
   <col width="91" style="mso-width-source:userset;mso-width-alt:2912;">
   <col width="72" style="width:54.00pt;">
   <col width="80" style="mso-width-source:userset;mso-width-alt:2560;">
   <col width="89" style="mso-width-source:userset;mso-width-alt:2848;">
   <col width="72" style="width:54.00pt;">
   <col width="121" style="mso-width-source:userset;mso-width-alt:3872;">
   <col width="72" span="2" style="width:54.00pt;">
   </colgroup><tbody><tr height="40" style="height:30.00pt;mso-height-source:userset;mso-height-alt:600;">
    <td class="xl65" height="59" width="743" colspan="8" rowspan="2" style="height:44.25pt;width:557.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;text-align:center" x:str="">一级动火工作票</td>
    <td class="xl84" width="144" colspan="2" rowspan="2" style="width:108.00pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
   </tr>
   <tr height="19" style="height:14.25pt;">
   </tr><tr height="19" style="height:14.25pt;">
    <td class="xl71" height="19" style="height:14.25pt;" x:str="">No：</td>
    <td class="xl72" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;">{{this.bb.rwdId}}</td>
    <td class="xl71" x:str="">编号：</td>
    <td class="xl75" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;">{{this.bb.ticketId}}</td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl71" height="19" style="height:14.25pt;" x:str="">动火部门</td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;">{{this.bb.orgName_dictText}}</td>
    <td class="xl71" x:str="">班组</td>
    <td class="xl75" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!draft">{{this.bb.className}}</td>
    <td class="xl75" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="draft">
        <a-input v-model="className"></a-input>
    </td>
    <td class="xl71" x:str="">动火工作负责人</td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!draft">{{this.bb.workOndutyPerson0}}</td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="draft">
        <input type="text" style="width:143px;"  v-model="workOndutyPerson0">
    </td>
    
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl76" height="38" rowspan="2" style="height:28.50pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">动火地点及<br>设备名称</td>
     <td class="xl75" colspan="9" rowspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!draft">{{this.bb.firePlaceEquip}}</td>
    <td class="xl75" colspan="9" rowspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="draft">
        <a-textarea
      v-model="firePlaceEquip"
      :auto-size="{ minRows: 3, maxRows: 5 }"
    />
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
   </tr><tr height="19" style="height:14.25pt;">
    <td class="xl71" height="19" style="height:14.25pt;" x:str="">动火执行人</td>
     <td class="xl75" colspan="4" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!draft">{{this.bb.fireExecutePerson1}}</td>
    <td class="xl75" colspan="4" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="draft">
        <a-input v-model="fireExecutePerson1"></a-input>
    </td>
    <td class="xl71" x:str="">操作证编号</td>
    <td class="xl75" colspan="4" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!draft">{{this.bb.operateBookId1}}</td>
    <td class="xl75" colspan="4" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="draft">
        <a-input v-model="operateBookId1"></a-input>
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl71" height="19" style="height:14.25pt;" x:str="">动火执行人</td>
     <td class="xl77" colspan="4" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!draft">{{this.bb.fireExecutePerson2}}</td>
    <td class="xl77" colspan="4" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="draft">
        <a-input v-model="fireExecutePerson2"> </a-input>
    </td>
    <td class="xl71" x:str="">操作证编号</td>
     <td class="xl77" colspan="4" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!draft">{{this.bb.operateBookId2}}</td>
    <td class="xl77" colspan="4" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="draft">
        <a-input v-model="operateBookId2"></a-input>
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl76" height="38" rowspan="2" style="height:28.50pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">动火工作<br>内容</td>
    <td class="xl75" colspan="9" rowspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;">{{this.bb.workDetail}}</td>
   </tr>
   <tr height="19" style="height:14.25pt;">
   </tr><tr height="19" style="height:14.25pt;">
    <td class="xl71" height="19" style="height:14.25pt;" x:str="">动火方式</td>
        <td class="xl75" colspan="9" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!draft"> {{this.bb.workWay}}</td>
    <td class="xl75" colspan="9" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="draft">
        <a-input v-model="workWay"></a-input>
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl75" height="19" colspan="5" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">检修应采取的安全措施</td>
    <td class="xl75" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">运行应采取的安全措施</td>
   </tr>
   <tr  class="a">
       <td class="xl75" height="38" colspan="5" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!draft">{{this.bb.safeActionCheck}}</td>
    <td class="xl75" height="38" colspan="5" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="draft">
         <a-textarea
      v-model="safeActionCheck"
      :auto-size="{ minRows: 3, maxRows: 5 }"
    />
    </td>
      <td class="xl75" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!draft">{{this.bb.safeActionRun}}</td>
    <td class="xl75" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="draft">
         <a-textarea
      v-model="safeActionRun"
      :auto-size="{ minRows: 3, maxRows: 5 }"
    />
    </td>
   </tr>
   
   <tr height="19" style="height:14.25pt;">
    <td class="xl71" height="19" style="height:14.25pt;" x:str="">申请动火时间</td>
    <td class="xl75" x:str="">自</td>
     <td class="xl75" colspan="4" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!draft">{{this.bb.applyFireDate1}}</td>
    <td class="xl75" colspan="4" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="draft">
         <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择时间" class="query-group-cust" v-model="applyFireDate1"></j-date>
    </td>
    <td class="xl75" x:str="">至</td>
      <td class="xl75" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!draft">{{this.bb.applyFireDate2}}</td>
    <td class="xl75" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="draft">
         <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择时间" class="query-group-cust" v-model="applyFireDate2"></j-date>
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl75" height="19" colspan="2" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">动火工作票签发人：</td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!sign">{{this.bb.ticketAsignPerson}}</td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="sign">
        <a-input v-model="ticketAsignPerson"></a-input>
    </td>
    <td class="xl80" x:str="">时间</td>
    <td class="xl77" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!sign">{{this.bb.ticketAsignDate}}</td>
    <td class="xl77" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="sign">
        <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择时间" class="query-group-cust" v-model="ticketAsignDate"></j-date>
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl71" height="19" style="height:14.25pt;" x:str="">审核人签名</td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">生产部门负责人：</td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">安监部门负责人：</td>
    <td class="xl75" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl75" height="19" colspan="3" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">分管生产领导或总工程师签名：</td>
    <td class="xl81" colspan="7" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!receive">{{this.bb.leaderSign1}}</td>
    <td class="xl81" colspan="7" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="receive">
        <a-input v-model="leaderSign1"></a-input>
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl71" height="19" style="height:14.25pt;" x:str="">批准动火时间</td>
    <td class="xl75" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!receive">{{this.bb.approveFireDate1}}</td>
    <td class="xl75" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="receive">
        <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择时间" class="query-group-cust" v-model="approveFireDate1"></j-date>
    </td>
    <td class="xl71" x:str="">开始至</td>
    <td class="xl75" colspan="4" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!receive">{{this.bb.approveFireDate2}}</td>
    <td class="xl75" colspan="4" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="receive">
        <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择时间" class="query-group-cust" v-model="approveFireDate2"></j-date>
    </td>
    <td class="xl71" x:str="">结束</td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl80" height="19" style="height:14.25pt;" x:str="">值长或班长签名：</td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!receive">{{this.bb.ondutyPersonSign}}</td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="receive">
        <a-input v-model="ondutyPersonSign"/>
    </td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">集控接票负责人签名</td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
    <td class="xl80" x:str="">时间：</td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!receive">{{this.bb.signDate1}}</td>
    <td class="xl75 b" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="receive">
        <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择时间" class="query-group-cust b" v-model="signDate1" style="width:120px;"></j-date>
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl81" height="19" colspan="6" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">动火区域（有易燃易爆气体、粉尘场所）测量结果：测量地点：</td>
     <td class="xl75" colspan="4" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!pending">{{this.bb.checkPlace}}</td>
    <td class="xl75" colspan="4" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="pending">
        <a-input v-model="checkPlace"></a-input>
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl75" height="19" colspan="2" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">1.易燃易爆气体（粉尘）名称<span style="display:none;">：</span></td>
    <td class="xl75" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!pending">{{this.bb.dangerGas}} </td>
    <td class="xl75" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="pending">
        <a-input v-model="dangerGas"></a-input>
    </td>
    <td class="xl71" x:str="">使用仪器：</td>
    <td class="xl75" colspan="4" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!pending">{{this.bb.usingApp}}</td>
    <td class="xl75" colspan="4" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="pending">
        <a-input v-model="usingApp"></a-input>
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl71" height="19" style="height:14.25pt;" x:str="">测量值：</td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!pending">{{this.bb.checkValue1}}</td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="pending">
        <a-input v-model="checkValue1"></a-input>
    </td>
    <td class="xl71" x:str="">测量时间</td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!pending">{{this.bb.checkDate1}}</td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="pending">
        <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择时间" class="b" v-model="checkDate1" ></j-date>
    </td>
    <td class="xl71 bb" x:str="">测量人</td>
    <td class="b" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!pending">{{this.bb.checkPerson1}}</td>
    <td class="b" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="pending">
        <a-input v-model="checkPerson1" style="width:144px;"></a-input>
    </td>
   </tr>
   <tr height="20" style="height:15.00pt;mso-height-source:userset;mso-height-alt:300;">
    <td class="xl82" height="20" colspan="5" style="height:15.00pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">安全措施执行完毕。</td>
    <td class="xl75" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
   </tr>
   <tr height="20" style="height:15.00pt;mso-height-source:userset;mso-height-alt:300;">
    <td class="xl83" height="20" style="height:15.00pt;" x:str="">动火工作负责人</td>
    <td class="xl83" v-if="!pendingfzr">{{this.bb.workOndutyPerson1}}</td>
    <td class="xl83" v-if="pendingfzr">
        <a-input v-model="workOndutyPerson1"></a-input>
    </td>
    <td class="xl83" x:str="">运行许可人</td>
    <td class="xl76" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!pendingxkr">{{this.bb.workPermmitSign1}}</td>
    <td class="xl76" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="pendingxkr">
        <a-input v-model="workPermmitSign1"></a-input>
    </td>
    <td class="xl80" x:str="">运行许可时间</td>
    <td class="xl80"></td>
    <td class="xl75" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!pendingtime">{{this.bb.runPermmitDate}} </td>
    <td class="xl75" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="pendingtime">
        <a-input v-model="runPermmitDate"></a-input>
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl75" height="19" colspan="2" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">动火风电负责人</td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">消防监护人</td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">安监部门负责人</td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">动火工作负责人</td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">动火执行人</td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl75" height="19" colspan="2" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
     <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!fire"> {{this.bb.fireProtectPerson1}}</td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="fire">
        <a-input v-model="fireProtectPerson1"></a-input>
    </td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl75" height="19" colspan="2" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">分管生产领导或总工程师签名<span style="display:none;">：</span></td>
    <td class="xl75" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!leader">{{this.bb.leaderSign2}} </td>
    <td class="xl75" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="leader">
        <a-input v-model="leaderSign2 "></a-input>
    </td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">允许动火时间</td>
    <td class="xl75" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!leader">{{this.bb.firePermmitDate}} </td>
    <td class="xl75" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="leader">
         <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择时间" class="b" v-model=" firePermmitDate" ></j-date>
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl71" height="19" style="height:14.25pt;" x:str="">结束动火时间</td>
    <td class="xl75" x:str="">自</td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!ingxkr">{{this.bb.fireOverDate}}</td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="ingxkr">
        <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择时间" class="b" v-model="fireOverDate" ></j-date>
    </td>
    <td class="xl71" x:str="">结束</td>
    <td class="xl75" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl71" height="19" style="height:14.25pt;" x:str="">动火执行人</td>
    <td class="xl71" v-if="!ingzxr">{{this.bb.fireExecutePerson4}}</td>
    <td class="xl71" v-if="ingzxr">
        <a-input v-model="fireExecutePerson4"></a-input>
    </td>
    <td class="xl71" x:str="">消防监护人</td>
    <td class="xl71" v-if="!ingjhr">{{this.bb.fireProtectPerson2}}</td>
    <td class="xl71" v-if="ingjhr">
        <a-input v-model="fireProtectPerson2"></a-input>
    </td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">动火工作负责人</td>
     <td class="xl71" v-if="!ingfzr">{{this.bb.workOndutyPerson4}}</td>
    <td class="xl71" v-if="ingfzr">
        <a-input v-model="workOndutyPerson4"></a-input>
    </td>
    <td class="xl71" x:str="">运行许可人</td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!ingxkr">{{this.bb.workPermmitSign0}}</td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="ingxkr">
        <a-input v-model="workPermmitSign0"></a-input>
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl71" height="19" style="height:14.25pt;" x:str="">备注：</td>
    <td class="xl75" colspan="9" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl71" height="19" style="height:14.25pt;" x:str="">工作票终结时间</td>
    <td class="xl75" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">集控值班负责人签名：</td>
    <td class="xl75" colspan="4" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl75" height="19" colspan="2" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">工作票闭环管理确认</td>
    <td class="xl71" x:str="">确认时间</td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!end">{{this.bb.ticketClosedDate}}</td>
    <td class="xl75" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="end">
        <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择时间" class="b" v-model=" ticketClosedDate"></j-date>
    </td>
    <td class="bb" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">工作负责人签名：</td>
      <td class="xl75" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!end">{{this.bb.workOndutySign}}</td>
    <td class="xl75" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="end">
        <a-input v-model="workOndutySign"></a-input>
    </td>
   </tr>
   
  </tbody></table>
    </div>
</template>
<script>
import store from '@/store'
import{Time} from '@/utils/time'
import JDate from '@/components/jeecg/JDate.vue'
import { httpAction, getAction,postAction,putAction } from '@/api/manage'
export default {
      components: {
      JDate,
    },
    data(){
        return{
            workOndutyPerson0:store.getters.userInfo.realname,
            className:'',
            draft:false,
            firePlaceEquip:'',
            fireExecutePerson1:'',
            operateBookId1:'',
            fireExecutePerson2:'',
            operateBookId2:'',
            workWay:'',
            safeActionCheck:'',
            safeActionRun:'',
            applyFireDate1:'',
            applyFireDate2:'',
            sign:false,
            ticketAsignPerson:store.getters.userInfo.realname,
            ticketAsignDate:Time(),
            receive:false,
            leaderSign1:store.getters.userInfo.realname,
            approveFireDate1:'',
            approveFireDate2:'',
            ondutyPersonSign:store.getters.userInfo.realname,
            signDate1:Time(),
            pending:false,
            pendingfzr:false,
            pendingxkr:false,
            pendingtime:false,
            checkPlace:'',
            dangerGas:'',
            usingApp:'',
            checkValue1:'',
            checkDate1:'',
            checkPerson1:'',
            workOndutyPerson1:'',
            workPermmitSign1:'',
            runPermmitDate:'',
            fire:false,
            fireProtectPerson1:'',
            leader:false,
            leaderSign2:store.getters.userInfo.realname,
            firePermmitDate:Time(),
            ingzxr:false,
            ingjhr:false,
            ingfzr:false,
            ingxkr:false,
            fireExecutePerson4:store.getters.userInfo.realname,
            fireProtectPerson2:store.getters.userInfo.realname,
            workOndutyPerson4:store.getters.userInfo.realname,
            workPermmitSign0:store.getters.userInfo.realname,
            fireOverDate:Time(),
            end:false,
            workOndutySign:store.getters.userInfo.realname,
            ticketClosedDate:Time()
            
        }
    },
    methods:{
        refresh(){
            return this.bb.type
        },
        back(){
             var obj = {}
            if(this.draft == true){
                obj = {
                    id:this.bb.id,
                    workOndutyPerson0:this.workOndutyPerson0,
                    className:this.className,
                    firePlaceEquip:this.firePlaceEquip,
                    fireExecutePerson1:this.fireExecutePerson1,
                    operateBookId1:this.operateBookId1,
                    fireExecutePerson2:this.fireExecutePerson2,
                    operateBookId2:this.operateBookId2,
                    workWay:this.workWay,
                    safeActionCheck:this.safeActionCheck,
                    safeActionRun:this.safeActionRun,
                    applyFireDate2:this.applyFireDate2,
                    applyFireDate1:this.applyFireDate1,
                }
            }else if(this.sign == true){
                obj = {
                    id:this.bb.id,
                    ticketAsignPerson:this.ticketAsignPerson,
                    ticketAsignDate:this.ticketAsignDate
                }
            }else if(this.receive == true){
                obj = {
                    id:this.bb.id,
                    leaderSign1:this.leaderSign1,
                    approveFireDate1:this.approveFireDate1,
                    approveFireDate2:this.approveFireDate2,
                    ondutyPersonSign:this.ondutyPersonSign,
                    signDate1:this.signDate1,
                }
            }else if(this.pending == true){
                obj = {
                     id:this.bb.id,
                     checkPlace:this.checkPlace,
                    dangerGas:this.dangerGas,
                    usingApp:this.usingApp,
                    checkValue1:this.checkValue1,
                    checkDate1:this.checkDate1,
                    checkPerson1:this.checkPerson1,
                }
                if(this.pendingfzr == true ){
                    obj.workOndutyPerson1 = this.workOndutyPerson1
                }else if(this.pendingxkr == true){
                    obj.workPermmitSign1 = this.workPermmitSign1
                }
            }else if(this.pendingtime == true){
                    if(this.pendingfzr == true ){
                        obj = {
                             id:this.bb.id,
                            workOndutyPerson1:this.workOndutyPerson1,
                            runPermmitDate:this.runPermmitDate
                        }
                }else if(this.pendingxkr == true){
                    obj = {
                         id:this.bb.id,
                         workPermmitSign1:this.workPermmitSign1,
                         runPermmitDate:this.runPermmitDate
                    }
                }
            }else if(this.fire == true){
                obj = {
                    id:this.bb.id,
                    fireProtectPerson1:this.fireProtectPerson1,
                }
            }else if(this.leader == true){
                obj = {
                    id:this.bb.id,
                    leaderSign2:this.leaderSign2,
                    firePermmitDate:this.firePermmitDate,
                }
            }else if( this.ingfzr == true){
                obj = { 
                    id:this.bb.id,
                    workOndutyPerson4:this.workOndutyPerson4
                }
            }else if(this.ingxkr == true){
                 obj = {
                    id:this.bb.id,
                    workPermmitSign0:this.workPermmitSign0,
                    fireOverDate:this.fireOverDate
                }
            }else if(this.ingjhr == true){ //消防监护人
                 obj = {
                    id:this.bb.id,
                    fireProtectPerson2:this.fireProtectPerson2,
                }
            }else if(this.ingzxr == true){
                 obj = {
                    id:this.bb.id,
                    fireExecutePerson4:this.fireExecutePerson4,
                }
            }else if(this.end == true){
                obj = {
                    id:this.bb.id,
                    workOndutySign:this.workOndutySign,
                    ticketClosedDate:this.ticketClosedDate,
                }
            }
            return obj
        }
    },
    props:['bb'], 
    mounted(){
        console.log('bb',this.bb)
        if(this.bb.workOndutyPerson0 == null){
            this.draft = true
        }
        if(this.bb.workOndutyPerson0 != null && this.bb.ticketAsignPerson == null){
            this.sign = true
        }
        if(this.bb.ticketAsignPerson != null && this.bb.signDate1 == null){
            this.receive = true
        }
        if(this.bb.checkPerson1 == null && this.bb.signDate1 != null){
            this.pending = true
        }
         var params={
            userid:store.getters.userInfo.id
        }
             getAction('/sys/user/queryUserRole',params).then(res=>{
            console.log('dengji',res)
            if(res.result[0] == '1364736776864395266'){ //负责人
            if(this.bb.signDate1 != null && this.bb.workOndutyPerson1 == null){
                this.workOndutyPerson1 = store.getters.userInfo.realname
                this.pendingfzr = true
                this.pendingxkr = false
                }
               if(this.bb.fireProtectPerson1 != null && this.bb.workOndutyPerson4 == null){
                   this.ingfzr = true
                   this.ingzxr =false
                   this.ingjhr = false
                   this.ingxkr  = false
                //    this.pendingfzr = false
                //    this.pendingxkr = false
               }else if(this.bb.workOndutyPerson4 != null && this.bb.workOndutySign == null){
                   this.end = true
                //    this.ingfzr = false
                //    this.ingzxr =false
                //    this.ingjhr = false
                //    this.ingxkr  = false
                //    this.pendingfzr = false
                //    this.pendingxkr = false
                //    this.pendingtime = false
               }
               
            }else if(res.result[0] == '1364736908854947842'){ //检修许可人
            if(this.bb.signDate1 != null && this.bb.workPermmitSign1 == null){
                this.workPermmitSign1 = store.getters.userInfo.realname
                this.pendingxkr = true
                this.pendingfzr = false
            }
            
            }else if(res.result[0] == '1370195812021153793'){  //消防监护人
                this.fireProtectPerson1 = store.getters.userInfo.realname
                if(this.bb.fireProtectPerson2 == null && this.bb.fireProtectPerson1 != null){
                    this.ingfzr = false
                   this.ingzxr =false
                   this.ingjhr = true
                   this.ingxkr  = false
                //    this.pendingfzr = false
                //    this.pendingxkr = false
                }
            }else if(res.result[0] == '1370219732497555457'){ //执行人
                if(this.bb.fireExecutePerson4 == null && this.bb.fireProtectPerson1 != null){ 
                     this.ingfzr = false
                   this.ingzxr =true
                   this.ingjhr = false
                   this.ingxkr  = false
                }
            }else if(res.result[0] == '1371716733830295553'){ //运行许可人
                if(this.bb.fireProtectPerson1 != null && this.bb.fireOverDate == null && this.bb.workPermmitSign0 == null){
                    this.ingfzr = false
                   this.ingzxr =false
                   this.ingjhr = false
                   this.ingxkr  = true
                   this.ingtime = true
                //    this.pendingfzr = false
                //    this.pendingxkr = false
                }
            }


             if((this.bb.workOndutyPerson1 != null && this.workPermmitSign1 != '') || (this.workOndutyPerson1 != '' && this.bb.workPermmitSign1 != null)){
                this.runPermmitDate = Time()
                this.pendingtime = true
                this.pending = false

            if(this.bb.fireProtectPerson1 == null && runPermmitDate != null){
                    this.pendingtime = false
                    this.pending = false
                }
                if(this.end == true){
                    this.pendingtime = false
                }
            }
        })
        if(this.bb.fireProtectPerson1 == null && this.bb.runPermmitDate != null){
            this.fire = true
        }
        // if(this.bb.leaderSign2 == null && this.bb.fireProtectPerson1 != null){
        //     this.leader = true
        // }
        

       
        
    }
}
</script>
<style scoped>
td{
    padding-top: 1px;
    padding-right: 1px;
    padding-left: 1px;
    vertical-align: middle;
    white-space: nowrap;
    color: windowtext;
    font-size: 12pt;
    font-weight: 400;
    font-style: normal;
    font-family: 宋体;
    text-decoration: none;
    border: 1px solid #000;
     }
.center{
    width:887px;
     background-color: #E5EDF0 !important;
     } 
.a{
    height:50px !important;
}
.b{
    width:144px !important;
}
.bb{
    position:relative;
}
</style>